<template>
    <div class="examine">
        <div class="title">审批总体情况</div>
        <div class="contain">
            <div class="con" v-for="(item) in Datas" :key="item.index">
                <img src="@/assets/images/9.png" alt="">
                <div class="text">
                    <p>{{ item.name }}</p>
                    <p class="number">{{ item.value }}</p>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        props:['resData'],
        data(){
            return{
                Datas:[],
            }
        },
        watch:{
            resData(res){
                let data = res.data.审批结果数据
                this.Datas = data.map((item, index) => {
                    return {...item, ...res.data.审批结果数据[index]};
                });
            }
        },
    }
</script>

<style lang="less" scoped>
.title {
    width: 1.2688rem;
    height: .4679rem;
    color: #fff;
    font-weight: bold;
    font-size: .2083rem;
    background: url('@/assets/images/16.png') no-repeat bottom right;
}
.contain {
    width: 4.5125rem;
    height: 1.6542rem;
    margin-top: .3125rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    .con {
        width: 2.2458rem;
        height: .3542rem;
        img {
            width: .3954rem;
            height: .3954rem;
            display: inline-block;
        }
        .text {
            width: 1.5042rem;
            height: 0.3679rem;
            color: #29cbfc;
            background: url('@/assets/images/8.png') no-repeat bottom;
            background-size: cover;
            text-align: center;
            display: inline-block;
            font-size: .1042rem;
            margin-top: .1042rem;
            .number {
                margin-bottom: .1042rem;
            }
        }
    }
}
</style>
